<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">
    <title>Document</title>
    <style>
        body{
            margin: 0;
            padding: 0;
        }
        .border{
            width: 100%;
            height: 100px;
            border: 1px solid cornflowerblue;
            box-sizing: border-box;
            /* transform: scale(0.5);
            -webkit-transform: scale(0.5); */
        }
        .image{
            width: 100%;
            height: 246px;
            background-image: url("../images/1dpr.jpg");
            background-size: 100%;
            background-repeat: no-repeat;
        }

        @media screen and (-webkit-min-device-pixel-ratio: 2) {
            .image{
                background-image: url("../images/2dpr.jpg");
            }
        }
        @media screen and (-webkit-min-device-pixel-ratio: 3) {
            .border{
                border: 10px solid cornflowerblue;
            }
            .image{
                background-image: url("../images/3dpr.jpg");
            }
        }

    </style>
</head>
<body>
    <div class="border"></div>
    <div class="image"></div>
    <div class="image"></div>
    <div class="image"></div>
    <div class="image"></div>
    <div class="image"></div>
    <div class="image"></div>
    <div class="image"></div>
    <div class="image"></div>

</body>
</html>